package com.lwg.datastructure.dataStructure;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;

/**
 * @FileName: RepeatNum.java
 * @Description: 存在重复元素
 * @author: 李炜光
 * @slogan:
 * @Date: 2022/3/23 0023
 */
public class RepeatNum {
    public boolean containsDuplicate(int[] nums) {
        Set<Object> set = new HashSet<>();
        for (int i = 0; i < nums.length; i++) {
            if (set.contains(nums[i]) && i <= nums.length) {
                return true;
            } else {
                set.add(nums[i]);
            }
        }
        return false;
    }
}

class MainClass {
    public static int[] stringToIntegerArray(String input) {
        input = input.trim();
        input = input.substring(1, input.length() - 1);
        if (input.length() == 0) {
            return new int[0];
        }

        String[] parts = input.split(",");
        int[] output = new int[parts.length];
        for (int index = 0; index < parts.length; index++) {
            String part = parts[index].trim();
            output[index] = Integer.parseInt(part);
        }
        return output;
    }

    public static String booleanToString(boolean input) {
        return input ? "True" : "False";
    }

    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = in.readLine()) != null) {
            int[] nums = stringToIntegerArray(line);

            boolean ret = new RepeatNum().containsDuplicate(nums);

            String out = booleanToString(ret);

            System.out.print(out);
        }
    }
}